import request from '@/utils/request'

// 查询污水厂列表
export function listWdSewagePlant(query) {
  return request({
    url: '/wd/plant/wdSewagePlant/list',
    method: 'get',
    params: query
  })
}

// 查询污水厂详细
export function getWdSewagePlant(id) {
  return request({
    url: '/wd/plant/wdSewagePlant/' + id,
    method: 'get'
  })
}

// 新增污水厂
export function addWdSewagePlant(data) {
  return request({
    url: '/wd/plant/wdSewagePlant',
    method: 'post',
    data: data
  })
}

// 修改污水厂
export function updateWdSewagePlant(data) {
  return request({
    url: '/wd/plant/wdSewagePlant',
    method: 'put',
    data: data
  })
}

// 删除污水厂
export function delWdSewagePlant(id) {
  return request({
    url: '/wd/plant/wdSewagePlant/' + id,
    method: 'delete'
  })
}
